* keyboard.c (echo_dash): Do nothing if echoptr is 0.
authorJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 07:45:07 +0000 (07:45 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 07:45:07 +0000 (07:45 +0000)
src/keyboard.c

index 8f4b9b4425fde434244855b39cc8fd429c6d6522..aa8a5e054677f824f8d7af6492dce22632047155 100644 (file)
@@ -521,6 +521,9 @@ echo_dash ()
 {
   if (!immediate_echo && echoptr == echobuf)
     return;
+  /* Do nothing if not echoing at all.  */
+  if (echoptr == 0)
+    return;
 
   /* Put a dash at the end of the buffer temporarily,
      but make it go away when the next character is added.  */